<template>
  <div>
    <h1>{{msg}}</h1>
    <h2>妈妈的名字：{{name}}</h2>
    <h2>妈妈的年龄：{{age}}</h2>
    <h2>妈妈的生肖：{{zodiac}}</h2>
  </div>
</template>

<script>
export default {
  name: "MyMother",
  data(){
    return{
      msg:'欢迎光临我的家'
    }
  },
  //接收的同时对数据进行类型限制
  props:{
    name:String,
    zodiac:String,
    age:Number
  }
}
</script>

<style scoped>

</style>
